package com.jeesite.modules.kj.api.vo.requestVo.base;

import io.swagger.annotations.ApiModelProperty;
import org.apache.poi.ss.formula.functions.T;

/*
 * 列表VO
 */
public abstract class ListRequestVo<T> extends BaseRequestVo<T> {
    @ApiModelProperty(value="列表查询每页显示条数,默认15", example = "15")
    private int pageSize;
    @ApiModelProperty(value="列表查询页码，默认为1", example = "1")
    private int pageNo;


    public int getPageSize() {
        return pageSize == 0 ? 15 : pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo == 0 ? 1 : pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

}
